package com.lct.demo;

import java.util.Random;
import java.util.Scanner;

public class Test3 {
    public static void main(String[] args) {
        //随机排序
        int[] code  = new int[5];

        Scanner sc = new Scanner(System.in);
        for (int i = 0; i < code.length; i++) {
            System.out.println("请您输入地"+ (i+1) + "名员工的工号");
            code[i] = sc.nextInt();
        }
        
        //打乱数据
        Random r = new Random();
        for (int i = 0; i < code.length; i++) {
            int j = r.nextInt(code.length);
            
            int temp = code[j];
            
            code[j] = code[i];
            
            code[i] = temp;
        }
        
        
        //输出打乱顺序后的结果
        for (int i = 0; i < code.length; i++) {
            System.out.print(code[i]);
        }
        
    }
}
